﻿using MiniFox.Components;
using System;
using System.Collections.Generic;

using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MiniFox.Configurations
{
    /// <summary>
    /// 
    /// </summary>
    [AutoRegister]
    public interface IConfigurationFactory
    {
        /// <summary>
        /// 
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <returns></returns>
        T GetConfiguration<T>() where T : class;
        /// <summary>
        /// 
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <param name="sectionName"></param>
        /// <returns></returns>
        T GetConfiguration<T>(string sectionName) where T : class;
    }

}
